using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Library.WebControls.SimpleSplitContainer {
  [ControlBuilderAttribute(typeof(PlaceHolderControlBuilder))]
  [ToolboxItem(false)]
  public class SpSpliterPanel : Control {
    public int MinValue { get; set; }

    public HorizontalAlign Horizontal { get; set; }
    public VerticalAlign Vertical { get; set; }
		public Unit Width { get; set; }
    internal SpSpliterTableCell CreateCell(string id) {
      var cell = new SpSpliterTableCell {
        //ID = id,
        HorizontalAlign = Horizontal,
        VerticalAlign = Vertical,
        CssClass = "spSpliterPanel"
      };
    	cell.Width = Width;
      cell.Controls.Add(this);
      return cell;
    }
  }
}